import {createApp} from 'vue'
import App from './App.vue'
import './tailwind.css'
import './style.css';
import router from './routes'


import {library} from '@fortawesome/fontawesome-svg-core'
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
import {fas} from '@fortawesome/free-solid-svg-icons'
import {fab} from '@fortawesome/free-brands-svg-icons'
import {far} from '@fortawesome/free-regular-svg-icons'
import {fasCircle, fasContacts, fasEmoji, fasFolder} from "./extented-icons";

library.add(fas)
library.add(fab)
library.add(far)
library.add(fasCircle)
library.add(fasContacts)
library.add(fasEmoji)
library.add(fasFolder)

import moment from "moment";
moment.locale('zh-cn', {
    relativeTime: {
        future: '%s内',
        past: '%s前',
        s: '几秒',
        ss: '%d秒',
        m: '1分钟',
        mm: '%d分钟',
        h: '1小时',
        hh: '%d小时',
        d: '1天',
        dd: '%d天',
        M: '1个月',
        MM: '%d个月',
        y: '1年',
        yy: '%d年'
    }
})
createApp(App)
    .component('fai', FontAwesomeIcon)
    .use(router)
    .mount('#app')
